package com.platform.security.model;

import com.platform.domain.TbSysUser;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 * User: wangyanginfo
 * Date: 12-9-6
 * Time: 下午4:52
 * To change this template use File | Settings | File Templates.
 */
public class UserInfo extends User {

    private TbSysUser tbSysUser; // 用户信息

    public UserInfo(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }

    public TbSysUser getTbSysUser() {
        return tbSysUser;
    }

    public void setTbSysUser(TbSysUser tbSysUser) {
        this.tbSysUser = tbSysUser;
    }
}
